package com.infosys.cabplanning.common.enums;

public enum LocationSortEnum {

	latitude("latitude"),
	longitude("longitude"),
	address("longitude");
	
	private String enumName;
	
	LocationSortEnum (String name) {
		this.setEnumName(name);
	}
	
	/**
	 * From value.
	 *
	 * @param pValue the value
	 * @return the sort enum
	 */
	public static LocationSortEnum fromValue(final String pValue) {
		return LocationSortEnum.valueOf(pValue);
	}

	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}

	public String getEnumName() {
		return enumName;
	}
	
	public String value() {
		return this.name();
	}
	
}
